package com.example.demo;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class TestDoc {
    public static void main(String[] args) {
        DocUtil docUtil=new DocUtil();
        Map<String, Object> dataMap=new HashMap<String, Object>();
        dataMap.put("name", "Joanna");
        dataMap.put("examNum", "111111111111");
        dataMap.put("idCard", "222222222222222222");
        dataMap.put("carModel", "C1");
        dataMap.put("busyType", "初次申领");
        dataMap.put("examDate", "2018-11-09");
        List<String> itemList = new ArrayList<>();
        itemList.add("1.111");
        itemList.add("2.222");
        itemList.add("3.333");
        dataMap.put("itemList", itemList);
        /*dataMap.put("orderCount", "第1次");
        dataMap.put("userImg1", docUtil.getImageStr("D:\\Img\\userImg1.png"));
        dataMap.put("userImg2", docUtil.getImageStr("D:\\Img\\userImg2.png"));
        dataMap.put("firstExamTime", "12:41:17-12:44:38");
        dataMap.put("firstExamScores", "0分，不及格");
        dataMap.put("firstDeductItem", "12:44:15 20102 1号倒车入库，车身出线 扣100分");
        dataMap.put("firstPic1", docUtil.getImageStr("D:\\Img\\firstPic1.png"));
        dataMap.put("firstPic2", docUtil.getImageStr("D:\\Img\\firstPic2.png"));
        dataMap.put("firstPic3", docUtil.getImageStr("D:\\Img\\firstPic3.png"));
        dataMap.put("secondExamTime", "12:46:50-13:05:37");
        dataMap.put("secondExamScores", "90分，通过");
        dataMap.put("secondDeductItem", "");
        dataMap.put("secondPic1", docUtil.getImageStr("D:\\Img\\secondPic1.png"));
        dataMap.put("secondPic2", docUtil.getImageStr("D:\\Img\\secondPic2.png"));
        dataMap.put("secondPic3", docUtil.getImageStr("D:\\Img\\secondPic3.png"));*/
        docUtil.createDoc(dataMap, "test", "D:\\yanqiong.doc");
    }
}